package org.rency.common.utils.validate;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class ValidatorBean {

	@NotNull(message = "ID不能为空")
	@Min(value=1,message="ID不能小于1")
    @Valid
	private int id;
	
	@NotNull(message = "邮件地址为空")
	@Size(min = 2, max = 12, message = "邮件地址长度校验失败,要求2-12位")
    @Valid
	private String email;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
}